﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IFTRUE.FMS.Model
{
    /// <summary>
    /// 作用：日志实体
    /// 作者：iftrue
    /// 日期：2013-08-19
    /// </summary>

    [Serializable]
   public class Log
    {
        private MongoDB.Bson.ObjectId _id;

        public MongoDB.Bson.ObjectId Id
        {
            get { return _id; }
            set { _id = value; }
        }

        private int _type;
       /// <summary>
       /// 日志类型１：系统日志２：操作日志３：错误日志４：异常日志
       /// </summary>
        public int Type
        {
            get { return _type; }
            set { _type = value; }
        }

        private string _title;
       /// <summary>
       /// 日志标题
       /// </summary>
        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        private string _content;
       /// <summary>
       /// 日志内容
       /// </summary>
        public string Content
        {
            get { return _content; }
            set { _content = value; }
        }

        private string _ip;
        /// <summary>
        /// 操作人IP
        /// </summary>
        public string IP
        {
            get { return _ip; }
            set { _ip = value; }
        }

        private DateTime _createDate;
       /// <summary>
       /// 创建时间
       /// </summary>
       [MongoDB.Bson.Serialization.Attributes.BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime CreateDate
        {
            get { return _createDate; }
            set { _createDate = value; }
        }
    }
}
